package org.daidai.abstrusewriting.homepage.classify.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2016/11/1.
 */

public class Special implements Parcelable{
    @SerializedName("id")
    private int id;
    @SerializedName("albumId")
    private int albumId;
    @SerializedName("uid")
    private int uid;
    @SerializedName("intro")
    private String intro;
    @SerializedName("nickname")
    private String nickname;
    @SerializedName("coverMiddle")
    private String coverMiddle;
    @SerializedName("title")
    private String title;
    @SerializedName("playsCounts")
    private long playsCounts;
    @SerializedName("trackId")
    private long trackId;
    @SerializedName("trackTitle")
    private String trackTitle;

    public Special() {
    }

    protected Special(Parcel in) {
        id = in.readInt();
        albumId = in.readInt();
        uid = in.readInt();
        intro = in.readString();
        nickname = in.readString();
        coverMiddle = in.readString();
        title = in.readString();
        playsCounts = in.readLong();
        trackId = in.readLong();
        trackTitle = in.readString();
        tracks = in.readInt();
    }

    public static final Creator<Special> CREATOR = new Creator<Special>() {
        @Override
        public Special createFromParcel(Parcel in) {
            return new Special(in);
        }

        @Override
        public Special[] newArray(int size) {
            return new Special[size];
        }
    };

    public int getTracks() {
        return tracks;
    }

    public void setTracks(int tracks) {
        this.tracks = tracks;
    }

    @SerializedName("tracks")
    private int tracks;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAlbumId() {
        return albumId;
    }

    public void setAlbumId(int albumId) {
        this.albumId = albumId;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getCoverMiddle() {
        return coverMiddle;
    }

    public void setCoverMiddle(String coverMiddle) {
        this.coverMiddle = coverMiddle;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public long getPlaysCounts() {
        return playsCounts;
    }

    public void setPlaysCounts(long playsCounts) {
        this.playsCounts = playsCounts;
    }

    public long getTrackId() {
        return trackId;
    }

    public void setTrackId(long trackId) {
        this.trackId = trackId;
    }

    public String getTrackTitle() {
        return trackTitle;
    }

    public void setTrackTitle(String trackTitle) {
        this.trackTitle = trackTitle;
    }

    @Override
    public String toString() {
        return "Special{" +
                "id=" + id +
                ", albumId=" + albumId +
                ", uid=" + uid +
                ", intro='" + intro + '\'' +
                ", nickname='" + nickname + '\'' +
                ", coverMiddle='" + coverMiddle + '\'' +
                ", title='" + title + '\'' +
                ", playsCounts=" + playsCounts +
                ", trackId=" + trackId +
                ", trackTitle='" + trackTitle + '\'' +
                ", tracks=" + tracks +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(albumId);
        dest.writeInt(uid);
        dest.writeString(intro);
        dest.writeString(nickname);
        dest.writeString(coverMiddle);
        dest.writeString(title);
        dest.writeLong(playsCounts);
        dest.writeLong(trackId);
        dest.writeString(trackTitle);
        dest.writeInt(tracks);
    }
}
